package com.doyens.gmall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.doyens.gmall.model.order.OrderInfo;

public interface OrderService extends IService<OrderInfo> {
    /**
     * 生产流水号
     * @param userId
     * @return
     */
    String getTradeNo(String userId);

    boolean checkTradeCode(String tradeNo,String userId);

    void deleteTradeNo(String userId);


    boolean checkStock(Long skuId,Integer skuNum);
}
